def setvalue(value):
    value=2

val=1
setvalue(val)
print(val)

def setdicvalue(dd):
    dd["a"]=4
    dd["b"]=5

dic=[{"a":1,"b":2},{"a":2,"b":3}]

for d in dic:
    setdicvalue(d)
print(dic)

def setlistvalue(ls):
    ls[0]=1
    ls.append(3)

ls=[0,1,2]
setlistvalue(ls)
for i in ls:
    print(i)